package com.ruoyi.common.core.web.domain;


import java.util.Calendar;
import java.util.Date;

/**
 * @author ChenYF
 * @date 2025-09-01 15:39
 */
public class AiResUserEntity {
    /**
     * 用户id
     */
    public Long patientId;
    /**
     * 用户信息
     */
    public String name;
    /**
     * 性别
     * "0：女  1：男",
     */
    public Integer sex;
    /**
     * 年龄
     */
    public Integer age;
    /**
     * 手机号
     */
    public String phone;
    /**
     * 身份证号码
     */
    public String idCard;

    public AiResUserEntity() {
    }

    public AiResUserEntity(String name, Integer sex, Integer age, String phone, String idCard) {
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.phone = phone;
        this.idCard = idCard;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * 性别 类型兼容
     * 系统：0男 1女 2未知
     * 机器：0女 1男
     *
     * @param sex
     */
    public void setSex(String sex) {
        if ("0".equals(sex)) {
            this.sex = 1;
        } else {
            this.sex = 0;
        }
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Long getPatientId() {
        return patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }
}
